#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

int main()
{
	Heap HP;
	HeapInit(&HP);
	HeapPush(&HP, 1);
	HeapPush(&HP, 2);
	HeapPush(&HP, 3);
	HeapPush(&HP, 5);
	HeapPush(&HP, 9);

	while (!HeapEmpty(&HP))
	{
		printf("%d ", HeapTop(&HP));
		HeapPop(&HP);
	}

	HeapDestory(&HP);


}